<%--
  Created by IntelliJ IDEA.
  User: 20493
  Date: 2023/10/29
  Time: 16:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<% request.setCharacterEncoding("UTF-8");%>
<jsp:useBean id="stu_DAO" class="com.dao.studentDAO"></jsp:useBean>
<jsp:useBean id="student" class="com.bean.Student"></jsp:useBean>
<jsp:setProperty property="*" name="student"/>
<% boolean result= stu_DAO.updateStu(student);
String msg="";
if (result)
    msg="修改图书成功!";
else
    msg="修改图书失败!";
session.setAttribute("msg",msg);
response.sendRedirect("Result.jsp");
%>
</body>
</html>
